<?php
class Pageley_Commerce_Domain_OrderStatusAfterPlace extends Pageley_Commerce_Domain_OrderStatus {
	public function tryAdd() {
		throw new Pageley_Domain_Exception(
			new Pageley_I18n_Message("error.commerce.addToOrderAfterPlace"));
	}
	
	public function tryRemove() {
		throw new Pageley_Domain_Exception(
			new Pageley_I18n_Message("error.commerce.removeFromOrderAfterPlace"));
	}
	
	public function tryPlace() {
		throw new Pageley_Domain_Exception(
			new Pageley_I18n_Message("error.commerce.placeAfterPlace"));
	}
}

Pageley_Commerce_Domain_OrderStatus::$PLACED = new Pageley_Commerce_Domain_OrderStatusAfterPlace("PLACED");